\documentclass{article}
\usepackage{tikz,amsmath}
\usetikzlibrary{arrows.meta}
\usepackage[graphics,tightpage,active]{preview}
\PreviewEnvironment{tikzpicture}
\begin{document}
\begin{tikzpicture}[>=Stealth]
    \draw (0, 1) -- (3, 1);
    \foreach \x / \name in {0.6/$A$, 2.4/$B$} {
        \draw (\x, 1) -- (\x, 1.1) node[anchor=south] {\name};
    }

    \draw (0, 0) -- (3, 0);
    \foreach \x / \name in {0.3/$C$, 2.7/$D$} {
        \draw (\x, 0) -- (\x, 0.1) node[anchor=south] {\name};
    }
\end{tikzpicture}
\end{document}
